/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.action;

import tdtest.controls.SystemComponentControl;

/**
 *
 * @author sutter
 */
public class WindowAction implements Action {
	private SystemComponentControl control;
	private SystemComponentControl.WindowState windowState;
	
	public WindowAction(SystemComponentControl control, SystemComponentControl.WindowState windowState) {
		this.control = control;
		this.windowState = windowState;
	}
	
	@Override
	public void run() {
		control.setWindowState(windowState);
	}
}
